package com.example.user.mapper;

import com.example.model.user.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author xie
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2025-04-26 16:35:45
* @Entity com.example.model.user.User
*/
@Mapper
public interface UserMapper {

    int delete(Long id);

    int insert(User record);

    User get(Long id);

    User getByUserName(String userName);

    List<User> list(User user);

    int update(User record);

    int resetPassword(User user);

    int resetAllPasswords();
}
